package newHomework;

import java.util.Scanner;

public class Next01 {
    public static void main(String[] args) {
        //预测身高题
        //通过父母的身高大致推断子女身高
        //儿子身高（cm）=(父亲身高+母亲身高)*1.08/2
        //女儿身高（cm）=(父亲身高*0.923+母亲身高)/2
        //已知父175cm,  母亲160cm
        //求子女身高
        System.out.println("请顺序输入父母身高，单位cm");
        Scanner scanner=new Scanner(System.in);
        int  father=scanner.nextInt();
        int  mather=scanner.nextInt();
        daughterHeight(father,mather);
        sunHeight(father,mather);

    }
    //女儿身高方法  身高cm
    public static void daughterHeight(int father,int mather){
       double daughter =(father*0.923+mather)/2;
       System.out.println("女儿的身高是"+daughter+"cm");
    }

    //儿子身高方法 身高cm
    public static void sunHeight(int father,int mather){
        double sun=(father+mather)*1.08/2;
        System.out.println("儿子身高是"+sun+"cm");
    }

}
